Is there any API for fetching alerts similar to GET/services and GET/incidents. I tried GET/alerts endpoint and was able to get a response but I donāt see any documentation for the same in your API reference.
If you have an endpoint for alerts, I would like to know more about query parameters it supports for filtering. My end goal is to list the alerts for a service as shown in the GUI when you select a specific service.
Curl command I used for alerts
curl --location --request GET āhttps://api.pagerduty.com/alerts?total=true&time_zone=UTC&limit=1ā
āheader āAuthorization: Token token=ā
āheader āAccept: application/vnd.pagerduty+json;version=2ā
āheader āContent-Type: application/jsonā
Response I got :
{
āalertsā: [ā¦
],
ālimitā: 1,
āoffsetā: 0,
āmoreā: true,
ātotalā: 20567
}